/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.services.loan;

import java.util.List;
import src.domain.loan.CoralAttrib;
import src.services.CRUEDService;

/**
 *
 * @author jasuke
 */
public class LoanCoralAttribModel implements java.io.Serializable{
    private CRUEDService service;
    
    public LoanCoralAttribModel() {
        service = new CRUEDService();
    }
    
    
    public List<CoralAttrib> findAll(Integer coralId) {
        return service.findAllSQLAdvance(
                "select distinct attrib2.coralAttrib from LoanCoralAttrib as attrib2 right outer join attrib2.coralAttrib as attrib "+
                "where attrib.coralId = "+coralId,
           
            null, " ");
    }
    
}
